home *** CD-ROM | disk | FTP | other *** search
- property pThisSprite, pScanState, pStartPos, pEndPos, pCurrentPos
-
- on new me
- set pThisSprite to the currentSpriteNum
- set pScanState to 0
- set pStartPos to the locV of sprite pThisSprite
- set pEndPos to pStartPos + 30
- set the visible of sprite pThisSprite to 0
- end
-
- on exitFrame me
- case pScanState of
- 0:
- set thisRandom to random(100)
- if thisRandom = 100 then
- set pScanState to 1
- set the visible of sprite pThisSprite to 1
- end if
- 1:
- set pCurrentPos to the locV of sprite pThisSprite
- if pCurrentPos < pEndPos then
- set pCurrentPos to pCurrentPos + 2
- set the locV of sprite pThisSprite to pCurrentPos
- else
- set pCurrentPos to pStartPos
- set the locV of sprite pThisSprite to pCurrentPos
- set pScanState to 0
- set the visible of sprite pThisSprite to 0
- end if
- end case
- end
-